<!DOCTYPE HTML>
<html lang="en-US">
<head>
	<meta charset="UTF-8">
	<base target="content"/>
	<title>商品属性管理</title>
	<hdjs/>
</head>
<body>
	<div class="menu_list">
		<ul>
			<li><a href="{|U:'GoodsType/index'}" class="action">商品类型</a></li>
			<li><a href="{|U:add,array('gt_id'=>$_GET['gt_id'])}">添加属性</a></li>
			<li><a href="{|U:index,array('gt_id'=>$_GET['gt_id'])}">现有属性</a></li>
		</ul>
	</div>
	<div class="title-header"><span style="font-size:14px;color:red;font-weight:700;">{$gtname}</span> 属性</div>
	<form action="" method="post">
		<table class="table1 hd-form">
			<thead>
				<tr>
					<td >AC_ID</td>
					<td >属性名称</td>
					<td>规格</td>
					<td>GT_ID(商品类型)</td>
					<td class="w150">操作</td>
				</tr>
			</thead>
			<list from="$data" name="d" >
				<tr>
					<td>{$d.ac_id}</td>
					<td>{$d.attr_name}</td>
					<td>
						<if value="{$d.is_spec} eq 0">
							<p>否</p>
						</if>
						<if value="{$d.is_spec} eq 1">
							<p style="color:red">是</p>
						</if>
					</td>
					<td>{$d.gt_id}</td>
					<td>
						<a href="{|U:'save',array('ac_id'=>$d['ac_id'],'gt_id'=>$gt_id)}">修改</a> | 
						<a href="{|U:'del',array('ac_id'=>$d['ac_id'],'gt_id'=>$gt_id)}">删除</a> 
					</td>
				</tr>
			</list>
		</table>
	
	</form>
</body>
</html>